/*
 * bot.h
 *
 *  Created on: Oct 21, 2011
 *      Author: igor
 */

#ifndef BOT_H_
#define BOT_H_

#include <string>
#include <iostream>
#include <stdio.h>


#include "../control/ElectionManager.h"
#include "../Votante.h"
#include "../../util/Utils.h"
#include "../log/Logger.h"


using namespace std;

class bot {

private:
	ElectionManager* electionManager;
	bool loginAsUser(string usuario, string password);
	void selectEleccion(ElectionManager* electionManager);
	void selectLista(ElectionManager* electionManager);
	int getRandomOption(int from, int to);
	int confirmarVoto(ElectionManager* electionManager, Lista* lista);
public:
	bot();
	virtual ~bot();
	void voteOnce(Votante* votante);
	int runSimulation();
};

#endif /* BOT_H_ */
